/**
 * Created by dinghh on 2018-7-11.
 */
(function (angular) {
    function CaseAnalysisService($resource, $q, $http, UrlConfigService) {
        var processCaseUrl=UrlConfigService.urlConfig.decisionAnalysis.prediction.caseAnalysis.process;
        var stabilityCaseUrl=UrlConfigService.urlConfig.decisionAnalysis.prediction.caseAnalysis.stability;
        var localCaseUrl=UrlConfigService.urlConfig.decisionAnalysis.prediction.caseAnalysis.local;
        var foreignCaseUrl=UrlConfigService.urlConfig.decisionAnalysis.prediction.caseAnalysis.foreign;
        var combinationCaseUrl=UrlConfigService.urlConfig.decisionAnalysis.prediction.caseAnalysis.combination;

        BaseListService.call(this, $resource, $q, $http);

        this.getProcessCase = function () {
            return $resource(processCaseUrl,{},{
                "getData":{"method":"POST"}
            }).getData();
        };
        this.getStabilityCase = function () {
            return $resource(stabilityCaseUrl,{},{
                "getData":{"method":"POST"}
            }).getData();
        };
        this.getLocalCase = function () {
            return $resource(localCaseUrl,{},{
                "getData":{"method":"POST"}
            }).getData();
        };
        this.getForeignCase = function () {
            return $resource(foreignCaseUrl,{},{
                "getData":{"method":"POST"}
            }).getData();
        };
        this.getCombinationCase = function () {
            return $resource(combinationCaseUrl,{},{
                "getData":{"method":"POST"}
            }).getData();
        };
    }

    CaseAnalysisService.$inject = ['$resource', '$q', '$http', 'UrlConfigService'];
    angular.module('MetronicApp').service('CaseAnalysisService', CaseAnalysisService);
})(angular);